﻿<UserControl x:Class="Black.Minecraft.Editor.Views.AboutView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:bh="clr-namespace:Black.Minecraft.Editor.Behaviors"
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             xmlns:vm="clr-namespace:Black.Minecraft.Editor.ViewModels"
             Width="500"
             Height="380">

    <Border Background="White"
            BorderBrush="Gray"
            BorderThickness="1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="100" />
                <RowDefinition Height="100" />
                <RowDefinition Height="100" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40" />
                <ColumnDefinition Width="190" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>


            <TextBlock Grid.Row="0"
                       Grid.Column="1"
                       Grid.ColumnSpan="2"
                       HorizontalAlignment="Left"
                       VerticalAlignment="Center"
                       FontSize="40"
                       Foreground="Red"
                       Text="Black Minecraft Editor" />
            <Image Grid.Row="1"
                   Grid.RowSpan="2"
                   Grid.Column="1"
                   Width="150"
                   Height="190"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Center"
                   Source="/Assets/Me.png"
                   Stretch="Fill" />

            <Grid Grid.Row="1"
                  Grid.Column="2"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="75" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                </Grid.RowDefinitions>

                <TextBlock Grid.Row="0"
                           Grid.Column="0"
                           FontWeight="Bold"
                           Text="Author :" />
                <TextBlock Grid.Row="0"
                           Grid.Column="1"
                           Text="Nicolas Calvi" />

                <TextBlock Grid.Row="1"
                           Grid.Column="0"
                           FontWeight="Bold"
                           Text="Blog :" />
                <TextBlock Grid.Row="1"
                           Grid.Column="1"
                           Foreground="Blue"
                           Text="http://blog.nicolascalvi.com">
                    <i:Interaction.Behaviors>
                        <bh:EventToCommandBehavior Command="{Binding LinkCommand}" Event="MouseDown" />
                    </i:Interaction.Behaviors>
                </TextBlock>

                <TextBlock Grid.Row="2"
                           Grid.Column="0"
                           FontWeight="Bold"
                           Text="Version :" />
                <TextBlock Grid.Row="2"
                           Grid.Column="1"
                           Text="{Binding Version}" />

            </Grid>

            <Button Grid.Row="3"
                    Grid.Column="0"
                    Grid.ColumnSpan="3"
                    Width="70"
                    Height="30"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Command="{Binding Source={x:Static vm:MainViewModel.Instance},
                                      Path=PopupCloseCommand}"
                    Content="Close" />
        </Grid>
    </Border>

</UserControl>
